package com.stu_ques.demo.pojo;

import java.io.Serializable;
import java.util.Date;

import com.stu_ques.common.util.DateUtil;

/**
 *	 皇上 属性:id,朝代Id,名字,年龄,身高,庙号,年号,创建时间,更新时间 
 * */

public class King implements Serializable
{
	private int id;
	private int DynastyId;
	private String name;
	private short age;
	private double heijht;
	private String mianHao;
	private String nianHao;
	private Date createTime;
	private Date updateTime;
	private Dynasty dynasty;
	/*读写器开始*/
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public int getDynastyId()
	{
		return DynastyId;
	}
	public void setDynastyId(int dynastyId)
	{
		DynastyId = dynastyId;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public short getAge()
	{
		return age;
	}
	public void setAge(short age)
	{
		this.age = age;
	}
	public double getHeijht()
	{
		return heijht;
	}
	public void setHeijht(double heijht)
	{
		this.heijht = heijht;
	}
	public String getMianHao()
	{
		return mianHao;
	}
	public void setMianHao(String mianHao)
	{
		this.mianHao = mianHao;
	}
	public String getNianHao()
	{
		return nianHao;
	}
	public void setNianHao(String nianHao)
	{
		this.nianHao = nianHao;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateThim(Date updateThim)
	{
		this.updateTime = updateThim;
	}
//	@Override
//	public String toString()
//	{
//		DateUtil dateUtil = new DateUtil();
//		// 皇上 属性:id,朝代Id,名字,年龄,身高,庙号,年号,创建时间,更新时间 
//		String str = this.getId() + "\t"+ this.getDynastyId() +"\t"+this.getName() +
//				"\t"+ this.getAge()+"\t"+ this.getHeijht() +"\t"+ 
//				this.getMianHao() +"\t"+this.getNianHao()+
//				"\t"+ dateUtil.dateTimeString(this.getCreateTime())+
//				"\t" + dateUtil.dateTimeString(this.getUpdateTime());
//		return str ;
//	}
	public Dynasty getDynasty()
	{
		return dynasty;
	}
	public void setDynasty(Dynasty dynasty)
	{
		this.dynasty = dynasty;
	}
	public static void main(String[] args)
	{
		King king = new King();
		System.out.println(king.toString());
	}
}

